﻿Public Class NhaThueBUS
    Public Shared Function GetAllNhaBUS() As DataTable

        Return NhaThueDAO.GetAllNhaDAO()
    End Function
    Public Shared Function GetAllNhaBUS_DaHuy() As DataTable

        Return NhaThueDAO.GetAllNhaDAO_DaHuy()
    End Function

    Public Shared Function GetNha_KhachHangBUS() As DataTable
        Return NhaThueDAO.GetNha_KhachHangDAO()
    End Function
    Public Shared Function GetMaNhaBUS() As DataTable

        Return NhaThueDAO.GetMaNhaDAO()
    End Function
    Public Shared Sub InsertNhaBUS(ByVal Nha As NhaThueDTO)

        NhaThueDAO.InsertNhaDAO(Nha)

    End Sub

    Public Shared Sub UpdateNhaBUS(ByVal Nha As NhaThueDTO)

        NhaThueDAO.UpdateNhaDAO(Nha)

    End Sub
    Public Shared Sub DeleteNhaBUS(ByVal MaNha As Integer)
        NhaThueDAO.DeleteNhaDAO(MaNha)

    End Sub

    Public Shared Sub DeleteNhaBUS_DaHuy(ByVal MaNha As Integer)
        NhaThueDAO.DeleteNhaDAO_DaHuy(MaNha)

    End Sub
    Public Shared Sub RestoreNhaBUS_DaHuy(ByVal MaNha As Integer)
        NhaThueDAO.RestoreNhaDAO_DaHuy(MaNha)

    End Sub

    Public Shared Sub Delete_CapNhat_TinhTrang_NhaBUS(ByVal MaNha As Integer)
        NhaThueDAO.Delete_CapNhat_TinhTrang_NhaDAO(MaNha)

    End Sub
    Public Shared Function TimKiemNhaBUS(ByVal TenCongty As String, ByVal MaLoaiNha As Integer, ByVal TenQuan As String, ByVal Loai As Integer) As DataTable

        Return NhaThueDAO.TimKiem_NhaThueDAO(TenCongty, MaLoaiNha, TenQuan, Loai)
    End Function

    Public Shared Function TimKiemNha_KhachHangBUS(ByVal MaLoaiNha As Integer, ByVal TenQuan As String, ByVal Loai As Integer) As DataTable

        Return NhaThueDAO.TimKiem_NhaThue_KhachHangDAO(MaLoaiNha, TenQuan, Loai)
    End Function
End Class
